import request from '@/utils/request'

export function getapi(current,size) {
  return request({
    url: '/admin/school/getSchool',
    method: 'get',
    params: { current, size }
  })
}

export function addapi(data) {
  return request({
    url: '/admin/school/addSchool',
    method: 'post',
    data
  })
}

export function updateapi(data) {
  return request({
    url: '/admin/school/updateSchool',
    method: 'post',
    data
  })
}

export function deleteapi(schoolId) {
  return request({
    url: '/admin/school/deleteSchool',
    method: 'get',
    params: { schoolId }
  })
}
